package org.foj.dto {

[RemoteClass(alias="org.foj.model.Issue")]
public class Issue {

  public var id:int;
  public var project:String;
  public var description:String;
  public var type:String;
  public var severity:String;
  public var status:String;
  public var details:String;
  public var reportedBy:String;
  public var reportedOn:Date;
  public var assignedTo:String;
  public var estimatedHours:Number;

  public function Issue(issue:* = null) {
    if (issue != null) {

      this.id = issue.id;
      this.project = issue.project;
      this.description = issue.description;
      this.type = issue.type;
      this.severity = issue.severity;
      this.status = issue.status;
      this.reportedBy = issue.reportedBy;
      this.reportedOn = issue.reportedOn;
      this.assignedTo = issue.assignedTo;
      this.estimatedHours = issue.estimatedHours;
      this.details = issue.details;
    }
  }
}
}